import request from "../utils/request";

export function replyCommentList(rootParentId) {
    return request({
        url: '/drama-comment/replys',
        method: 'get',
        params: {
            rootParentId
        }
    })
}

export function commentList(dramaId) {
    return request({
        url: '/drama-comment/list',
        method: 'get',
        params: {
            dramaId
        }
    })
}

export function sendComment(comment) {
    return request({
        url: `/drama-comment/commit`,
        method: 'post',
        data: comment
    })
}
